package com.zt.event.feishu;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

import java.util.List;

/**
 * @author zt24151
 * @version 1.0
 * @description
 * @date 2023/4/13
 */
@Getter
@Setter
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class MessageInteractiveStatusDTO {

    private Header Header;

    private Config config;

    private List<Elements> elements;

    @Getter
    @Setter
    public static class Config {
        @JsonProperty("wide_screen_mode")
        private Boolean wideScreenMode;
    }

    @Getter
    @Setter
    public static class Elements {

        private String tag;

        private List<Fields> fields;
    }


    @Getter
    @Setter
    public static class Fields {

        @JsonProperty("is_short")
        private Boolean isShort;

        private Title text;
    }


    @Getter
    @Setter
    public static class Header {

        private String template;

        private Title title;

    }

    @Getter
    @Setter
    @AllArgsConstructor
    @NoArgsConstructor
    public static class Title {
        private String tag;

        private String content;
    }

}
